60 SensorBasePtr _sensor_ptr,
61 const Eigen::VectorXd& _data,
62 CaptureBasePtr _capture_origin_ptr,
71 SensorBasePtr _sensor_ptr,
72 const Eigen::VectorXd& _data,
73 const Eigen::MatrixXd& _data_cov,
74 CaptureBasePtr _capture_origin_ptr,
90 const Eigen::VectorXd&
getData()
const;
98 void setData(
const Eigen::VectorXd& _data);
177 std::ostream& stream,
178 std::string _tabs =
"")
const override;
182 Eigen::VectorXd data_;
183 Eigen::MatrixXd data_cov_;
184 Eigen::VectorXd calib_preint_;
186 CaptureBaseWPtr capture_origin_ptr_;
201 assert(_data.size() == data_.size() &&
"Wrong size of data vector!");
207 assert(_data_cov.rows() == data_cov_.rows() &&
"Wrong number of rows of data vector!");
208 assert(_data_cov.cols() == data_cov_.cols() &&
"Wrong number of cols of data vector!");
209 data_cov_ = _data_cov;
224 return getBuffer().back().jacobian_calib_;
234 return capture_origin_ptr_.lock();
239 return capture_origin_ptr_.lock();
244 capture_origin_ptr_ = _capture_origin_ptr;
249 return calib_preint_;
254 calib_preint_ = _calib_preint;
269 return getBuffer().back().delta_integr_cov_;
Base class of captures: a sensor measurement taken at a time stamp, linked to a frame,...
Definition: capture_base.h:41
Base class for motion Captures.
Definition: capture_motion.h:54
~CaptureMotion() override
Definition: capture_motion.cpp:59
void printHeader(int depth, bool factored_by, bool metric, bool state_blocks, std::ostream &stream, std::string _tabs="") const override
Prints the information of this node (not of its children)
Definition: capture_motion.cpp:103
const Eigen::VectorXd & getData() const
Returns the motion data.
Definition: capture_motion.h:189
bool isMotion() const override
Returns whether the capture is a motion capture (CaptureMotion)
Definition: capture_motion.h:82
void setData(const Eigen::VectorXd &_data)
Sets the motion data (of the same size)
Definition: capture_motion.h:199
const Eigen::MatrixXd & getDataCovariance() const
Returns the motion data covariance.
Definition: capture_motion.h:194
MotionBuffer & getBuffer()
Returns the buffer of pre-integrated motions.
Definition: capture_motion.h:217
Eigen::VectorXd getDeltaPreint() const
Returns the pre-integrated delta of the last motion of the buffer.
Definition: capture_motion.h:257
void setOriginCapture(CaptureBasePtr _capture_origin_ptr)
Sets the origin capture of the motion.
Definition: capture_motion.h:242
CaptureBasePtr getOriginCapture()
Returns the origin capture of the motion.
Definition: capture_motion.h:232
double distanceToTimeStamp(const TimeStamp &_ts) const
Distance from a time stamp to the time interval covered by this capture.
Definition: capture_motion.cpp:89
void setCalibrationPreint(const Eigen::VectorXd &_calib_preint)
Sets the calibration parameters used during pre-integration.
Definition: capture_motion.h:252
Eigen::MatrixXd getDeltaPreintCov() const
Returns the pre-integrated delta covariance of the last motion of the buffer.
Definition: capture_motion.h:267
Eigen::MatrixXd getJacobianCalib() const
Returns the Jacobian of the pre-integrated delta wrt the calibration parameters, of the last motion o...
Definition: capture_motion.h:222
bool containsTimeStamp(const TimeStamp &_ts, double _time_tolerance) const
Returns whether _ts is within the time span of the buffer (or close to the capture time stamp if the ...
Definition: capture_motion.cpp:64
void setDataCovariance(const Eigen::MatrixXd &_data_cov)
Sets the motion data covariance (of the same size)
Definition: capture_motion.h:205
CaptureMotion(const std::string &_type, const TimeStamp &_ts, SensorBasePtr _sensor_ptr, const Eigen::VectorXd &_data, CaptureBasePtr _capture_origin_ptr, const TypeComposite &_state_types={}, const VectorComposite &_state_vectors={}, const PriorComposite &_state_priors={})
Constructor without data covariance: it is computed by the sensor (zero if no sensor)
Definition: capture_motion.cpp:23
Eigen::VectorXd getCalibrationPreint() const
Returns the calibration parameters used during pre-integration.
Definition: capture_motion.h:247
Buffer of motions (pre-integrated deltas) of a CaptureMotion.
Definition: motion_buffer.h:108
const Motion & getMotion(const TimeStamp &_ts) const
Returns the motion at _ts, following the rules of the class description.
Definition: motion_buffer.cpp:85
TimeStamp implements basic functionalities for time stamps.
Definition: time_stamp.h:39
Composite of state vectors.
Definition: vector_composite.h:29
Definition: capture_base.h:23
WOLF_PTR_TYPEDEFS(CaptureLandmarksExternal)
Eigen::VectorXd delta_integr_
The integrated motion or delta-integral.
Definition: motion_buffer.h:44
Eigen::MatrixXd jacobian_calib_
Jacobian of delta_integr wrt extra states (TBD by the derived processors)
Definition: motion_buffer.h:48
Eigen::MatrixXd delta_integr_cov_
Covariance of the integrated delta.
Definition: motion_buffer.h:45